package com.train.mgr.modules.system.entity;

import com.train.common.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_position")
public class Position extends BaseEntity<Position> {
    private static final long serialVersionUID = 1L;

    /** 岗位序号 */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("post_id")
    private Long postId;

    /** 岗位编码 */
    @TableField("post_code")
    private String postCode;

    /** 岗位名称 */
    @TableField("post_name")
    private String postName;

    /** 岗位排序 */
    @TableField("post_sort")
    private Integer postSort;

    /** 状态（0正常 1停用） */
    @TableField("status")
    private String status;

    /** 用户是否存在此岗位标识 默认不存在 */
    //private boolean flag = false;

    @TableField("customer_id")
    private Long customerId;

    @TableField("remark")
    private String remark;

}
